package edu.lnu.ums.dal.impl;

import javax.ejb.Stateless;

import edu.lnu.ums.dal.ICountryDAO;
import edu.lnu.ums.entities.dictionaries.Country;
import javax.persistence.EntityManagerFactory;

@Stateless
public class CountryDAO extends GenericDictionaryDAO<Country> implements ICountryDAO {

    public CountryDAO() {
        super(Country.class);
    }    

    @Override
    public String getByNameQuery() {
        return "from Country where name like :name";
    }

    @Override
    public String getOrderByQuery() {
        return "order by name";
    }
}
